package com.tulingxueyuan.mall.modules.oms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tulingxueyuan.mall.modules.oms.model.OmsOrderReturnReason;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 退货原因表 服务类
 * </p>
 *
 * @author zhaofuhao
 * @since 2022-03-03
 */
public interface OmsOrderReturnReasonService extends IService<OmsOrderReturnReason> {
    /**
     * 获取全部退货原因信息 业务接口
     * @param pageSize
     * @param pageNum
     * @return
     */
    Page list(Integer pageSize, Integer pageNum);

    /**
     * 添加单条退货原因
     * @param omsOrderReturnReason
     * @return
     */
    boolean add(OmsOrderReturnReason omsOrderReturnReason);

    /**
     * 修改是否可用
     * @param ids
     * @param status
     * @return
     */
    boolean updateStatus(List<Long> ids, Integer status);


}
